﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.PathPlanningStatusConverter
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using DnProcessSimulateCommands.AutomaticPathPlanner;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Data;


namespace DnProcessSimulateCommands;

public class PathPlanningStatusConverter : IValueConverter
{
  private static Dictionary<CUiAPPMainWindow.PathPlanningUIStatus, string> stepNames = new Dictionary<CUiAPPMainWindow.PathPlanningUIStatus, string>()
  {
    {
      CUiAPPMainWindow.PathPlanningUIStatus.NONE,
      CApAPPMainWindowStringTable.PathPlanningStatusNone
    },
    {
      CUiAPPMainWindow.PathPlanningUIStatus.EXTRACTING,
      CApAPPMainWindowStringTable.PathPlanningStatusExtracting
    },
    {
      CUiAPPMainWindow.PathPlanningUIStatus.OPTIMIZING,
      CApAPPMainWindowStringTable.PathPlanningStatusOptimizing
    },
    {
      CUiAPPMainWindow.PathPlanningUIStatus.FINALIZING,
      CApAPPMainWindowStringTable.PathPlanningStatusFinalizing
    },
    {
      CUiAPPMainWindow.PathPlanningUIStatus.PLANNING,
      CApAPPMainWindowStringTable.PathPlanningStatusPlanning
    }
  };

  public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  {
    return value is CUiAPPMainWindow.PathPlanningUIStatus key && PathPlanningStatusConverter.stepNames.ContainsKey(key) ? (object) PathPlanningStatusConverter.stepNames[(CUiAPPMainWindow.PathPlanningUIStatus) value] : (object) "";
  }

  public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  {
    throw new NotImplementedException();
  }
}
